<?php
declare(strict_types = 1);

namespace app\common\model\delivery;

use app\common\model\Admin;
use app\common\model\base\BaseModel;
use app\common\model\User;

class Seller Extends BaseModel
{
    public function user()
    {
        return $this->hasOne(User::class,'id','user_id')->field('id,avatar,nickname');
    }

    public function channel()
    {
        return $this->hasOne(Channel::class,'id','channel_id');
    }

    public function admin()
    {
        return $this->hasOne(Admin::class,'id','admin_id')->field('id,nickname,username');
    }
}
